package best.driver.android.Beans;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by xiangxuefeng on 15/8/24.
 */
public class PayType {

    private static PayType mOrderStatus;
    private static Map<String, String> mPayTypeMap = new HashMap<String, String>();
    public static PayType getInstance() {
        if(mOrderStatus != null) {
            return  mOrderStatus;
        } else {
            mOrderStatus = new PayType();
            generateOrderStatusMap();
            return mOrderStatus;
        }
    }

    public Map<String, String> getPayTypeMap() {
        getInstance();
        return mPayTypeMap;
    }

    private static void generateOrderStatusMap() {
        mPayTypeMap.clear();
        mPayTypeMap.put("ADVANCE_PAY", "现付");
        mPayTypeMap.put("DELIVERY_PAY","到付");
        mPayTypeMap.put("RECEIPT_PAY","回单付");
        mPayTypeMap.put("BALANCE_PAY","余额付");
    }


}
